package red.lixiang.service;

import red.lixiang.model.Address;
import red.lixiang.model.BaseInfo;
import red.lixiang.model.Member;
import org.springframework.stereotype.Service;

@Service
public interface MemberService {

    BaseInfo getMemberByCardOrMobile(String word);
    BaseInfo getMemberByWxOpenId(String openId);


    BaseInfo addNewMember(Member member);

    BaseInfo updateMember(Member member);

    BaseInfo memberRecharge(Double rechargeValue, Integer id);

    BaseInfo getMemberSale(Integer id);

    BaseInfo getMemberAddress(Integer memberId);

    BaseInfo updateAddress(Address address);

    BaseInfo deleteAddress(Integer id);

    BaseInfo addNewAddress(Address address);

    BaseInfo updateDefaultAddress(Address address);

    BaseInfo getDefaultAddress(Integer memberId);

}
